home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 015a / qw12inst.zip / EXTEND.TEC < prev    next >
Text File  |  1991-03-11  |  6KB  |  100 lines

  1. ID:ET Extended Memory and DESQview
  2. Quarterdeck Technical Note #106
  3. by Dan Sallitt
  4.  
  5. Extended memory is memory with addresses higher than 1024K (1 
  6. megabyte).  Extended memory can only exist on machines with 
  7. address buses capable of accessing more than 1024K, and requires 
  8. a 286 processor or higher; the AT was the first machine that 
  9. supported extended memory.  DOS can only access the first 1024K 
  10. of any machine's address space, and therefore cannot access 
  11. extended memory directly; programs that access extended memory 
  12. generally must go into protected mode to do so.  Real-mode 
  13. programs that use extended memory, such as VDISK.SYS, do not run 
  14. their code above 1024K; they go into protected mode long enough 
  15. to store data in extended memory, then return to real mode. 
  16. Extended memory should not be confused with expanded memory, which
  17. does not occupy specific memory addresses and which is associated
  18. with special mapping hardware that allows it to appear as if it is
  19. located below 1024K. 
  20.  
  21. DESQview cannot run conventional, real-mode DOS programs in 
  22. extended memory (unless the extended memory is converted into 
  23. expanded memory, a process that is easily accomplished on a 386 
  24. machine with the help of Quarterdeck's QEMM-386).  We can only 
  25. accomplish the difficult feat of multitasking beyond 640K with 
  26. the aid of the hardware mapping capabilities that expanded memory 
  27. can provide.  Extended memory, by contrast, is not intelligent 
  28. memory: it simply sits above 1024K.
  29.  
  30. In 1986 Quarterdeck discovered a loophole in DOS that allows 
  31. programs to access the first 64K of extended memory without going 
  32. into protected mode.  DESQview 2.00 and later versions come with 
  33. a driver, QEXT.SYS, which, when placed in the CONFIG.SYS file and 
  34. used in conjunction with our XDV.COM or DV.COM loaders, allows 
  35. DESQview to take 63K of its code out of conventional memory and 
  36. place it in extended memory between 1024K and 1088K.  QEXT.SYS is 
  37. usually only needed on 286 systems, as QEMM-386 is capable of 
  38. accomplishing the same task on 386 systems.
  39.  
  40. In 1988 Microsoft, using the same loophole discovered earlier by 
  41. Quarterdeck, announced the existence of the Extended Memory 
  42. Specification (XMS), which governs DOS-based access to the first
  43. 64K of extended memory as well as protected-mode access to the rest
  44. of extended memory and access to blocks of memory between 640K and
  45. 1024K.  The XMS has become a standard for extended memory
  46. allocation, and DESQview 2.26 and later versions support running
  47. programs that allocate memory through the XMS inside DESQview
  48. windows.  In addition, the copy of QEXT.SYS that comes with
  49. DESQview 2.26 and later versions functions as an XMS manager, and
  50. can, if desired, give other programs access to the first 64K of
  51. extended memory instead of DESQview.  (Only one program at a time
  52. can use this 64K block.)  QEXT.SYS performs the same XMS functions
  53. as Microsoft's XMS manager HIMEM.SYS, and should be used instead
  54. of, not in addition to, HIMEM.SYS.
  55. Though DESQview cannot run conventional, real-mode DOS programs 
  56. in extended memory, it can swap DOS programs back and forth from
  57. extended memory -- if the extended memory is used as a RAM disk 
  58. and if the drive letter of the RAM disk is entered in the SWAP 
  59. field of the DESQview Setup in the Logical Drives section.  
  60. Programs that are swapped out are not running, but swapping
  61. programs back and forth to extended memory (which occurs
  62. automatically under the above circumstances when DESQview runs 
  63. out of multitasking memory) is much faster than swapping to the 
  64. hard disk.
  65.  
  66. It has become increasingly common for large programs to take 
  67. advantage of protected mode to run in extended memory, using 
  68. supplementary utilities called DOS Extenders to handle 
  69. transitions between protected mode and real mode.  To make it 
  70. possible for DOS Extenders to coexist with 386 memory managers, 
  71. Quarterdeck and Phar Lap (a leading manufacturer of DOS 
  72. Extenders) collaborated in 1988 to create the VCPI (Virtual 
  73. Control Program Interface) specification.  Many other vendors, 
  74. including all major manufacturers of DOS Extenders, now support 
  75. the VCPI.  DESQview users who also have QEMM-386 (version 4.1 or 
  76. later) can run VCPI protected mode programs in DESQview windows 
  77. alongside DOS-based programs, without the need to reserve separate
  78. sections of extended and expanded memory for the different
  79. programs. The VCPI is a specification for 386 and 486 processors
  80. only.  DESQview 2.26 and later versions can run multiple protected
  81. mode programs on 286 systems if the protected mode programs use XMS
  82. services to access extended memory.  However, it is impossible on
  83. 286 systems to convert extended and expanded memory back and forth
  84. on demand, as can be done on a 386 system or higher; the 286
  85. systems must be configured with enough extended memory to run the
  86. DOS Extender programs and enough expanded memory to satisfy
  87. DESQview's needs and the needs of other programs that use expanded
  88. memory.  
  89.  
  90. Microsoft Windows 3.0, which can go into protected mode and run 
  91. Windows-based applications in extended memory on a 286 system or 
  92. higher, is an example of a DOS Extender-type program that is not 
  93. a client of the VCPI.  However, special adjustments were made to 
  94. DESQview 2.3 and QEMM 5.1 to allow Windows 3.0 to run in its 
  95. standard mode (which uses the processor's protected mode) inside 
  96. a DESQview window alongside other applications.
  97.  
  98.         Copyright (C) 1991 by Quarterdeck Office Systems
  99.              * * *   E N D   O F   F I L E    * * * 
  100.